package com.mo.axion.web.controller;

import com.mo.axion.domain.SendRequest;
import com.mo.axion.domain.SendResponse;
import com.mo.axion.service.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mo
 * @createTime 2024/2/24 0:55
 * @description 发送信息
 */
@RestController
public class SendController {
    @Autowired
    private SendService sendService;

    @PostMapping("/send")
    public SendResponse send(@RequestBody SendRequest sendRequest) {
        return sendService.send(sendRequest);
    }
}
